//
//  MGTableViewManage+Refresh.h
//  MGPublic
//
//  Created by lhongl on 2025/10/16.
//

#import "MGTableViewManage.h"
NS_ASSUME_NONNULL_BEGIN

@interface MGTableViewManage (Refresh)

/// 刷新
/// - Parameter headerBlock: 刷新回调
- (void)initHeaderRefresh:(void(^)(void))headerBlock;

/// 加载
/// - Parameter footerBlock: 加载回调
- (void)initFooterRefresh:(void(^)(void))footerBlock;

/// 刷新加载
/// - Parameters:
///   - headerBlock: 刷新回调
///   - footerBlock: 加载回调
- (void)initHeaderRefresh:(void(^)(void))headerBlock
            FooterRefresh:(void(^)(void))footerBlock;

/// 开始刷新
- (void)startRefreshing;

/// 结束刷新
- (void)finshRefreshing;


/// 隐藏footer
/// - Parameter hiddle: 状态
- (void)setFooterHidden:(BOOL)hiddle;

@end

NS_ASSUME_NONNULL_END
